package org.zfes.snowier.zbss.xzy.face.enums;

public enum ErrorInfo {
	  MOK(Integer.valueOf(0)),
	  MERR_UNKNOWN(Integer.valueOf(1)),
	  MERR_INVALID_PARAM(Integer.valueOf(2)),
	  MERR_UNSUPPORTED(Integer.valueOf(3)),
	  MERR_NO_MEMORY(Integer.valueOf(4)),
	  MERR_BAD_STATE(Integer.valueOf(5)),
	  MERR_USER_CANCEL(Integer.valueOf(6)),
	  MERR_EXPIRED(Integer.valueOf(7)),
	  MERR_USER_PAUSE(Integer.valueOf(8)),
	  MERR_BUFFER_OVERFLOW(Integer.valueOf(9)),
	  MERR_BUFFER_UNDERFLOW(Integer.valueOf(10)),
	  MERR_NO_DISKSPACE(Integer.valueOf(11)),
	  MERR_COMPONENT_NOT_EXIST(Integer.valueOf(12)),
	  MERR_GLOBAL_DATA_NOT_EXIST(Integer.valueOf(13)),
	  MERR_FSDK_INVALID_APP_ID(Integer.valueOf(28673)),
	  MERR_FSDK_INVALID_SDK_ID(Integer.valueOf(28674)),
	  MERR_FSDK_INVALID_ID_PAIR(Integer.valueOf(28675)),
	  MERR_FSDK_MISMATCH_ID_AND_SDK(Integer.valueOf(28676)),
	  MERR_FSDK_SYSTEM_VERSION_UNSUPPORTED(Integer.valueOf(28677)),
	  MERR_FSDK_LICENCE_EXPIRED(Integer.valueOf(28678)),
	  MERR_FSDK_FR_INVALID_MEMORY_INFO(Integer.valueOf(73729)),
	  MERR_FSDK_FR_INVALID_IMAGE_INFO(Integer.valueOf(73730)),
	  MERR_FSDK_FR_INVALID_FACE_INFO(Integer.valueOf(73731)),
	  MERR_FSDK_FR_NO_GPU_AVAILABLE(Integer.valueOf(73732)),
	  MERR_FSDK_FR_MISMATCHED_FEATURE_LEVEL(Integer.valueOf(73733)),
	  MERR_FSDK_FACEFEATURE_UNKNOWN(Integer.valueOf(81921)),
	  MERR_FSDK_FACEFEATURE_MEMORY(Integer.valueOf(81922)),
	  MERR_FSDK_FACEFEATURE_INVALID_FORMAT(Integer.valueOf(81923)),
	  MERR_FSDK_FACEFEATURE_INVALID_PARAM(Integer.valueOf(81924)),
	  MERR_FSDK_FACEFEATURE_LOW_CONFIDENCE_LEVEL(Integer.valueOf(81925)),
	  MERR_ASF_EX_FEATURE_UNSUPPORTED_ON_INIT(Integer.valueOf(86017)),
	  MERR_ASF_EX_FEATURE_UNINITED(Integer.valueOf(86018)),
	  MERR_ASF_EX_FEATURE_UNPROCESSED(Integer.valueOf(86019)),
	  MERR_ASF_EX_FEATURE_UNSUPPORTED_ON_PROCESS(Integer.valueOf(86020)),
	  MERR_ASF_EX_INVALID_IMAGE_INFO(Integer.valueOf(86021)),
	  MERR_ASF_EX_INVALID_FACE_INFO(Integer.valueOf(86022)),
	  MERR_ASF_ACTIVATION_FAIL(Integer.valueOf(90113)),
	  MERR_ASF_ALREADY_ACTIVATED(Integer.valueOf(90114)),
	  MERR_ASF_NOT_ACTIVATED(Integer.valueOf(90115)),
	  MERR_ASF_SCALE_NOT_SUPPORT(Integer.valueOf(90116)),
	  MERR_ASF_VERION_MISMATCH(Integer.valueOf(90117)),
	  MERR_ASF_DEVICE_MISMATCH(Integer.valueOf(90118)),
	  MERR_ASF_UNIQUE_IDENTIFIER_MISMATCH(Integer.valueOf(90119)),
	  MERR_ASF_PARAM_NULL(Integer.valueOf(90120)),
	  MERR_ASF_LIVENESS_EXPIRED(Integer.valueOf(90121)),
	  MERR_ASF_VERSION_NOT_SUPPORT(Integer.valueOf(90122)),
	  MERR_ASF_SIGN_ERROR(Integer.valueOf(90123)),
	  MERR_ASF_DATABASE_ERROR(Integer.valueOf(90124)),
	  MERR_ASF_UNIQUE_CHECKOUT_FAIL(Integer.valueOf(90125)),
	  MERR_ASF_COLOR_SPACE_NOT_SUPPORT(Integer.valueOf(90126)),
	  MERR_ASF_IMAGE_WIDTH_HEIGHT_NOT_SUPPORT(Integer.valueOf(90127)),
	  MERR_ASF_READ_PHONE_STATE_DENIED(Integer.valueOf(90128)),
	  MERR_ASF_ACTIVATION_DATA_DESTROYED(Integer.valueOf(90129)),
	  MERR_ASF_SERVER_UNKNOWN_ERROR(Integer.valueOf(90130)),
	  MERR_ASF_NETWORK_COULDNT_RESOLVE_HOST(Integer.valueOf(94209)),
	  MERR_ASF_NETWORK_COULDNT_CONNECT_SERVER(Integer.valueOf(94210)),
	  MERR_ASF_NETWORK_CONNECT_TIMEOUT(Integer.valueOf(94211)),
	  MERR_ASF_NETWORK_UNKNOWN_ERROR(Integer.valueOf(94212));
	  
	  ErrorInfo(Integer value) {
	    this.value = value;
	  }
	  
	  private Integer value;
	  
	  public Integer getValue() {
	    return this.value;
	  }
	  
	  public static ErrorInfo getValidEnum(Integer value) {
	    for (ErrorInfo errorInfo : values()) {
	      if (errorInfo.getValue().equals(value))
	        return errorInfo; 
	    } 
	    return MERR_UNKNOWN;
	  }
}
